<extend name="Base/common"/>
<!--<script type="text/javascript" src="/SG_Shopwechat/Public/Home/js/iscroll.js"></script>-->
<block name="TITLE"><title>鲜生活采价</title></block>
<block name="body" >
    <header data-am-widget="header" class="am-header am-header-default am-header-fixed">
        <div class="am-header-left am-header-nav">

        </div>
        <h1 class="am-header-title">
            <a href="#title-link" class="">
                &nbsp;{$title}
            </a>
        </h1>
    </header>
    <!-- 数据列表 -->
    <div class="" style="font-size: 15px;">
        <table id="inventoryTable" class="am-table am-table-striped" style="border-color: #FFF !important;">
            <thead >
            <tr>
                <th>名称</th>
                <th>规格</th>
                <th>价格</th>
                <th>时间</th>
            </tr>
            </thead>
            <tbody >
            <notempty name="_list">
                <volist name="_list" id="vo">
                        <tr class="aaa">
                            <a href="{:U('detail')}&id={$vo.id}">
                            <td>{$vo.pname}</td>
                            <td>{$vo.spec}</td>
                            <td>{$vo.price}</td>
                            <td>{$vo.createdAt|time_format=###,'Y-m-d'}</td>
                            </a>
                        </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
</block>
<block name="script">
    <script>
        $(function(){
            $("#inventoryTable").DataTable({
                searching:false,
                language: {
                    search: "查询:",
                    lengthMenu:    "每页显示 _MENU_ 条",
                    info:           "当前  _START_ - _END_ 条，共 _TOTAL_ 条",
                    paginate: {
                        first:      "第一页",
                        previous:   "上一页",
                        next:       "下一页",
                        last:       "最后一页"
                    },
                }
            });
        });
    </script>
</block>